﻿<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <title>试卷预览</title>
    

    <!-- Le styles -->
 
    <link href="~/Scripts/NewFiles/bootstrap.min.css" rel="stylesheet" />

    <link href="~/Scripts/NewFiles/bootstrap-responsive.min.css" rel="stylesheet" />
     @*<link rel="stylesheet" type="text/css" media="screen" href="~/css/smartadmin-production.css">*@
    <link rel="stylesheet" type="text/css" media="screen" href="~/css/smartadmin-skins.css">
<style>
body{font-family:"ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;}
</style>
    
    <link href="~/Scripts/NewFiles/prettify.css" rel="stylesheet" />
    <link href="~/Scripts/NewFiles/docs.css" rel="stylesheet" />

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
    <![endif]-->

  </head>

  <body data-spy="scroll" data-target=".bs-docs-sidebar">

          <!--一个隐藏的input 保留CourseID--->
<input  id="HiddenCourseID" type="hidden" value="@ViewBag.CourseID"/>

<!--一个隐藏分的input 保留PaperID-->
<input  id="HiddenPaperID" type="hidden" value="@ViewBag.PaperID"/>


<header class=" subhead" id="overview" >
    <!--试卷的头部（包括试卷名，考试的科目，考核方式）-->
    <div id="TestPaperHeader"  style="margin-left:auto;margin-right:auto; float:left">
        <!--试卷标题-->
        <div class="container center " style="text-align:center;" >
           <label class="lead" >@ViewBag.TestName</label>
        </div>
        

        <!-- end 试卷标题-->

        <!--考试科目及考核方式 现在没有设置data-bind-->
        <div class="container ">
            <span style="float: left; margin-left: 10%">
                <label class="lead" style="float:left">考试科目：</label>
                <label class="lead" style="float:right">@ViewBag.CourseName</label>
            </span>
            <span style="float: right; margin-right: 10%">
                <label class="lead" style="float:left">考核方式：</label>
                <label class="lead" style="float:right">@ViewBag.TestType</label>
            </span>

        </div>

        

        <!--end 考试科目及考核方式-->

    </div>

    

</header>
<!-- end试卷的头部-->

  <div class="container" >

    <div class="row">
        <div class="span9">

               
        @{ 
                var i=0;
                string[] str = { "一、", "二、", "三、", "四、", "五、", "六、", "七、", "八、", "九、", "十、" };   //大题编号
                           
               }
            @foreach (var a in ViewBag.TestPaperDetail)
            {
                i++;
                var pid = "s" + i;
                var qNo = 0;     //大题里面小题题号
                var totalCount = a.StrategyItem.IScore;//大题的总分 
                var totalNum = a.StrategyItem.INum;//小题数量
                var perScore = (totalCount*1.0) / totalNum;//每小题的平均分
                <!--获取试题的大题信息-->
                <div id="@pid">
                                  
                    <p class="font-md" >
                       @str[i-1] @a.StrategyItem.STitle (本大题共 @totalNum 小题，每小题 @perScore 分，共 @totalCount 分)
                    </p>
                    


                    @foreach (var b in a.LibItemList)//标题
                    {
                        qNo++;
                        string tempstr = qNo + ". ";
                        string tempHref = "/TeacherManger/ChangeQuestionView?CourseID="+@ViewBag.CourseID+" &ProblemType=" + b.LibItem.IProblemType + "&PaperDetailId=" + b.LibItem.Id + "&IStrategyID=" + a.StrategyItem.Id;//转跳到试题列表
                        <!--小题题块-->
                        <div id="@b.LibItem.Id" >

                            <!--获取小题的题型  todo-->
                            <input type="hidden" id="TestLbId" value="@b.LibItem.IProblemType" />
                        <!--手动换题-->
                            <div style="float:right">
                     
         
                           <a href="@tempHref" class="btn" >手动选题</a>     

                            </div>
                            <!--end 手动换题-->
                      <!--小题内容-->
                      <div style="">
                        <label class="font-md">
                           @tempstr @b.LibItem.STitle
                        </label><br />
                       @{if (b.OptionList != null)
                        {
                            int tempI = 0;//用于标记选项
                            string[] Option = { "A.", "B.", "C.", "D.","E.","F.","G." };
                             <table class="smart-form" >
                            @foreach (var c in b.OptionList)
                            {
                                string OptionStr = "Option" + qNo;
                                       
                              <tr>
                                  <td ><input type="radio" name="@OptionStr" value="0"> </td>
                                  <td style="padding-left:10px;" class="font-md">@Option[tempI] @c.SOptionName</td>
                              </tr>
                                tempI++;
                            }
                                </table>
                        }
                        else{
                            string nameStr="answerRadio"+qNo;
                           <table class="smart-form" >
                                                        <tr>
                                                            <td><label>答案：</label></td>
                                                            <td style="width: 200px; ">
                                                            <label class="radio state-success">
                                                                <input type="radio" name="@nameStr" value="1">
                                                                <i></i>
                                                                正确
                                                            </label>
                                                        </td>
                                                        <td style="width: 200px;">
                                                            <label class="radio state-success">
                                                                <input type="radio" name="@nameStr" value="0">
                                                                <i></i>
                                                                错误
                                                            </label>
                                                        </td>
                                                        </tr>
                                                    </table>
                        <br />
                        
                        }
                        }
                          </div>
                            <!--end 小题内容-->

                            

                            </div>
                        <!-- end 小题题块-->
                    }

                </div> 
                <!--end 获取试题的大题信息--> 
            }
	         

      </div>
      <div class="span3 bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
          <li><a href="#"><i class="icon-chevron-left"></i>题号</a></li>
               @{ 
                var j=0;
                string[] strs = { "一", "二", "三", "四", "五", "六", "七", "八", "九", "十" };   //大题编号
                           
               }

            @foreach (var a in ViewBag.TestPaperDetail)
            {
                j++;
                string Str="#s"+j;
               
                    <li><a href="@Str"><i class="icon-chevron-left"></i>@strs[j-1]</a></li>;
           
            
            }

        </ul>
      </div>
      
    </div>

  </div>



    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    

        <script src="~/Scripts/jquery-1.8.2.min.js"></script>
        <script src="~/Scripts/NewFiles/bootstrap.min.js"></script>
        <script src="~/Scripts/NewFiles/holder.min.js"></script>
   <script src="~/Scripts/NewFiles/application.js"></script>

    <script src="~/Scripts/NewFiles/prettify.js"></script>
    <script type="text/javascript">
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F3d8e7fc0de8a2a75f2ca3bfe128e6391' type='text/javascript'%3E%3C/script%3E"));
    </script>


  </body>
</html>
